package com.dave.gd.sysmgr.domain.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;


@Table(name = "el_user_info")
public class UserInfo implements Serializable{//extends AbstractBaseEntity<Integer> {


    /**
     * .
     */
    private static final long serialVersionUID = -4708612920463905348L;

    /**
     * 
     */
    @Id
    @Column(name = "id")
    private Integer id=0;

    /**
     * 是否老师
     */
    @Column(name = "isTeacher")
    private String isTeacher;

    /**
     * 
     */
    @Column(name = "uid")
    private int uid;

    /**
     * 个人头像
     */
    @Column(name = "face")
    private String face;

    /**
     * 性别
     */
    @Column(name = "sex")
    private String sex;

    /**
     * 邮箱验证码
     */
    @Column(name = "verifyCode")
    private String verifyCode;

    /**
     * 粉丝数
     */
    @Column(name = "fanNum")
    private int fanNum;

    /**
     * 回答数
     */
    @Column(name = "answerNum")
    private int answerNum;

    /**
     * 用户状态，creted，verifying,ok
     */
    @Column(name = "state")
    private String state;

    /**
     * 老师介绍
     */
    @Column(name = "teacherIntroduction")
    private String teacherIntroduction;

    /**
     * Entity对象Id
     */
    @Column(name = "entityId")
    private int entityId;

    /**
     * 赞成数
     */
    @Column(name = "answerVoteupNum")
    private int answerVoteupNum;

    /**
     * 
     */
    @Column(name = "deleted")
    private String deleted;

    /**
     * 
     */
    @Column(name = "rennId")
    private String rennId;

    /**
     * 一句话自我介绍
     */
    @Column(name = "bio")
    private String bio;

    /**
     * 上次登录时间
     */
    @Column(name = "upTime")
    private Timestamp upTime;

    /**
     * 
     */
    @Column(name = "email")
    private String email;

    /**
     * 暂存email，用于社交网站开放登录
     */
    @Column(name = "tmpEmail")
    private String tmpEmail;

    /**
     * 是否系统管理员
     */
    @Column(name = "isAdmin")
    private String isAdmin;

    /**
     * 
     */
    @Column(name = "realname")
    private String realname;

    /**
     * 
     */
    @Column(name = "deleteTime")
    private Timestamp deleteTime;

    /**
     * 详细介绍
     */
    @Column(name = "introduction")
    private String introduction;

    /**
     * 加入时间
     */
    @Column(name = "addTime")
    private Timestamp addTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIsTeacher() {
        return isTeacher;
    }

    public void setIsTeacher(String isTeacher) {
        this.isTeacher = isTeacher;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public int getFanNum() {
        return fanNum;
    }

    public void setFanNum(int fanNum) {
        this.fanNum = fanNum;
    }

    public int getAnswerNum() {
        return answerNum;
    }

    public void setAnswerNum(int answerNum) {
        this.answerNum = answerNum;
    }


    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getTeacherIntroduction() {
        return teacherIntroduction;
    }

    public void setTeacherIntroduction(String teacherIntroduction) {
        this.teacherIntroduction = teacherIntroduction;
    }

    public int getEntityId() {
        return entityId;
    }

    public void setEntityId(int entityId) {
        this.entityId = entityId;
    }

    public int getAnswerVoteupNum() {
        return answerVoteupNum;
    }

    public void setAnswerVoteupNum(int answerVoteupNum) {
        this.answerVoteupNum = answerVoteupNum;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    public String getRennId() {
        return rennId;
    }

    public void setRennId(String rennId) {
        this.rennId = rennId;
    }

    public String getBio() {
        return bio;
    }

    public void setBio(String bio) {
        this.bio = bio;
    }

    public Timestamp getUpTime() {
        return upTime;
    }

    public void setUpTime(Timestamp upTime) {
        this.upTime = upTime;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTmpEmail() {
        return tmpEmail;
    }

    public void setTmpEmail(String tmpEmail) {
        this.tmpEmail = tmpEmail;
    }

    public String getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(String isAdmin) {
        this.isAdmin = isAdmin;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Timestamp getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Timestamp deleteTime) {
        this.deleteTime = deleteTime;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    


   /* @Override
    public Integer getId() {
        return this.id;
    }

    @Override
    public void setId(Integer id) {
        this.id=id;
    }
    public static IUserInfoRepository repository() {
        return (IUserInfoRepository) RepositoryRegister.getInstance()
                .getRepository(UserInfo.class);
    }*/

}
